package com.qidian.blog.servlet;

import com.qidian.blog.factory.ServiceFactory;
import com.qidian.blog.service.BlogTagService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author 郭浩
 * @Date 2022/10/12 9:37
 */
@WebServlet("/tag")
public class BlogTagServlet extends BaseServlet{
    private BlogTagService service = ServiceFactory.getService(BlogTagService.class);
    public void queryAll(HttpServletRequest req, HttpServletResponse resp)throws IOException, ServletException {
        respJson(service.queryAll(),resp);
    }
}
